home *** CD-ROM | disk | FTP | other *** search
/ PC for Alla 2005 May / PC för Alla 0505.iso / fullversioner / realsoft3d / data1.cab / Scripting / scripts / js / real / raytr / r3mapsrc.js < prev    next >
Encoding:
JavaScript  |  2005-04-04  |  2.7 KB  |  85 lines

  1.  
  2. // JavaScript wrapper for r3mapsrc.h
  3. // Auto generated file, do not modify by hand
  4. // Copyright ⌐ 2004, Realsoft Graphics Oy
  5.  
  6. var R3_FRMAPSOURCE_H = 1;
  7. include("real/raytr/r3frlibo.js")
  8. include("oops/r3vector.js")
  9.  
  10.  
  11. var R3CLID_FRMAPSOURCE = 705;
  12.  
  13.  
  14.  
  15.  
  16. // Description: evaluate the object at given phase
  17. // p1: Integer, phase to be evaluated
  18. // p2: Object, address of the parent map object
  19.  
  20. R3FRMSRCM_EVALUATE = 705000;
  21.  
  22. function mR3FRMSRCM_EVALUATE(p1, p2) {
  23.   DoA3(this.r3obj, 705000, p1, R3TID_INTEGER, 0, p2, R3TID_OBJECT, 0, 0, R3TID_INTEGER, 0);
  24. }
  25.  
  26. // Description: Report channels which this object affects by    * R3SendMsgA3(msg, p1, phasebits, channelname) where phasebits is
  27. //      union of all bits    * (1<<activephase), where activephase is the phase(s) where the object is operational
  28. // p1: Object, callback object
  29. // p2: Integer, phase mask. Only channels in defined phases will be reported. A particular phase is
  30. //      indicated by 1<<phaseindex. 0xFFFFFFFF includes all phases.
  31. // p3: Integer, callback method    
  32.  
  33. R3FRMSRCM_ENUMOUTPUTCHANNELS = 705001;
  34.  
  35. function mR3FRMSRCM_ENUMOUTPUTCHANNELS(p1, p2, p3) {
  36.   DoA3(this.r3obj, 705001, p1, R3TID_OBJECT, 0, p2, R3TID_INTEGER, 0, p3, R3TID_INTEGER, 0);
  37. }
  38.  
  39. // Description: Report input channels which this object affects, see ENUMOUTPUTCHANNELS above. 
  40.  
  41. R3FRMSRCM_ENUMINPUTCHANNELS = 705002;
  42.  
  43. function mR3FRMSRCM_ENUMINPUTCHANNELS() {
  44.   DoA(this.r3obj, 705002, 0, R3TID_INTEGER, 0);
  45. }
  46.  
  47. // Description: Asks which evaluation phases are being used
  48. // p3: Integer[], integer whose bits corresponging each used phase index should be enabled. !!! Add the
  49. //      bits using OR operation !!! p3 |= mybits    
  50.  
  51. R3FRMSRCM_PHASEQUERY = 705003;
  52.  
  53. function mR3FRMSRCM_PHASEQUERY(p3) {
  54.   DoA(this.r3obj, 705003, p3, R3TID_INTEGER, R3TNF_ARRAY);
  55. }
  56.  
  57. // Description: Enumerate objects hierarchically R3DoA(p1, p3, enumerated_obj)
  58. // p1: Object, callback target
  59. // p2: Integer[], callback method
  60. // p3: Integer, phase bits to filter objects. Do callback only for objects evaluated in these phases    
  61.  
  62. R3FRMSRCM_FILTERENUM = 705004;
  63.  
  64. function mR3FRMSRCM_FILTERENUM(p1, p2, p3) {
  65.   DoA3(this.r3obj, 705004, p1, R3TID_OBJECT, 0, p2, R3TID_INTEGER, R3TNF_ARRAY, p3, R3TID_INTEGER, 0);
  66. }
  67.  
  68.  
  69.  
  70. function r3Frmapsource () { 
  71.    this.base = r3God;
  72.    if(arguments.length) {
  73.       this.base(R3CLID_FRMAPSOURCE, arguments);
  74.    }
  75.    // Methods
  76.    this.EVALUATE=mR3FRMSRCM_EVALUATE;
  77.    this.ENUMOUTPUTCHANNELS=mR3FRMSRCM_ENUMOUTPUTCHANNELS;
  78.    this.ENUMINPUTCHANNELS=mR3FRMSRCM_ENUMINPUTCHANNELS;
  79.    this.PHASEQUERY=mR3FRMSRCM_PHASEQUERY;
  80.    this.FILTERENUM=mR3FRMSRCM_FILTERENUM;
  81.  
  82. }
  83.  
  84. r3Frmapsource.prototype=new r3Frlibobject;
  85. // r3mapsrc.h_H